package com.ruoyi.littleRedBook.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 领取记录表
 * </p>
 *
 * @author
 * @since
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ReceiveRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 领取记录id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 优惠券id
     */
    @TableField("coupon_id")
    private Long couponId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private LocalDateTime createTime;



    @Override
    public String toString() {
        return "ReceiveRecord{" +
        "recordId=" + recordId +
        ", userId=" + userId +
        ", couponId=" + couponId +
        ", createTime=" + createTime +
        "}";
    }
}
